﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DryWCS.Model.User
{
    [SugarTable("Sys_User")]
    public class UserModel
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
        public int Id { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>

        [SugarColumn(Length = 50, IsNullable = false, ColumnDataType = "varchar")]
        public string Nikname { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = false, ColumnDataType = "varchar")]
        public string Name { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = false, ColumnDataType = "varchar")]
        public string Password { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [SugarColumn(Length = 20, IsNullable = true, ColumnDataType = "varchar")]
        public string PhoneNumbe { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDataType = "varchar")]
        public string Address { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDataType = "varchar")]
        public string Department { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true, ColumnDataType = "varchar")]
        public string Remarks { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Role { get; set; } = 3;

    }
}
